package com.ruoyi.safety.service.impl;

import java.util.ArrayList;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.safety.mapper.SafetySubstationHistoryMapper;
import com.ruoyi.safety.domain.SafetySubstationHistory;
import com.ruoyi.safety.service.ISafetySubstationHistoryService;

/**
 * 分站历史信息数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-12
 */
@Service
public class SafetySubstationHistoryServiceImpl extends ServiceImpl<SafetySubstationHistoryMapper, SafetySubstationHistory> implements ISafetySubstationHistoryService //修改
{
    @Autowired
    private SafetySubstationHistoryMapper safetySubstationHistoryMapper;

    /**
     * 查询分站历史信息数据
     * 
     * @param id 分站历史信息数据主键
     * @return 分站历史信息数据
     */
    @Override
    public SafetySubstationHistory selectSafetySubstationHistoryById(String id)
    {
        return safetySubstationHistoryMapper.selectSafetySubstationHistoryById(id);
    }

    /**
     * 查询分站历史信息数据列表
     * 
     * @param safetySubstationHistory 分站历史信息数据
     * @return 分站历史信息数据
     */
    @Override
    public List<SafetySubstationHistory> selectSafetySubstationHistoryList(SafetySubstationHistory safetySubstationHistory)
    {
        return safetySubstationHistoryMapper.selectSafetySubstationHistoryList(safetySubstationHistory);
    }

    /**
     * 新增分站历史信息数据
     * 
     * @param safetySubstationHistory 分站历史信息数据
     * @return 结果
     */
    @Override
    public int insertSafetySubstationHistory(SafetySubstationHistory safetySubstationHistory)
    {
        return safetySubstationHistoryMapper.insertSafetySubstationHistory(safetySubstationHistory);
    }

    /**
     * 修改分站历史信息数据
     * 
     * @param safetySubstationHistory 分站历史信息数据
     * @return 结果
     */
    @Override
    public int updateSafetySubstationHistory(SafetySubstationHistory safetySubstationHistory)
    {
        return safetySubstationHistoryMapper.updateSafetySubstationHistory(safetySubstationHistory);
    }

    /**
     * 批量删除分站历史信息数据
     * 
     * @param ids 需要删除的分站历史信息数据主键
     * @return 结果
     */
    @Override
    public int deleteSafetySubstationHistoryByIds(String[] ids)
    {
        return safetySubstationHistoryMapper.deleteSafetySubstationHistoryByIds(ids);
    }

    /**
     * 删除分站历史信息数据信息
     * 
     * @param id 分站历史信息数据主键
     * @return 结果
     */
    @Override
    public int deleteSafetySubstationHistoryById(String id)
    {
        return safetySubstationHistoryMapper.deleteSafetySubstationHistoryById(id);
    }

    @Override
    public void insertDataBatch(ArrayList<SafetySubstationHistory> substationHistoryArrayList) {
        safetySubstationHistoryMapper.insertDataBatch(substationHistoryArrayList);
        return ;
    }
}
